import java.util.Scanner;

public class Zhekou {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("是否是会员(y/n)");
		String huiyuan = sc.next();
		System.out.println("请输入你的消费金额：");
		double m = sc.nextDouble();
		if ("y".equals(huiyuan)) {
			if (m >= 200) {
				m = m * 0.75;
			} else {
				m = m * 0.8;
			}
		} else {
			if (m >= 100) {
				m = m * 0.9;
			}
		}
		System.out.println("您只要支付" + m + "元！");
	}

}
